<template>
  <div>
    <el-dialog
      title="新增目录"
      :visible.sync="dialogVisible"
      width="30%"
      :before-close="handleClose"
    >
      <el-form>
        <el-form-item
          width="200px"
          label="所属学科"
          prop="subject"
          v-model="mlForm.subject"
        >
          <el-select v-model="value" filterable placeholder="请选择">
            <el-option
              v-for="item in subjectlist"
              :key="item.id"
              :label="item.subjectName"
              :value="item.subjectName"
            ></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="目录名称" prop="mlname" width="200px">
          <el-input v-model="mlForm.mlname"></el-input>
        </el-form-item>
      </el-form>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>

export default {}
</script>

<style></style>
